//
//  AddressBook.m
//  UI11_homework_通讯录
//
//  Created by aaaaaa on 16/6/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AddressBook.h"

@implementation AddressBook

- (void)dealloc
{
    [_dictionary release];
    [super dealloc];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _dictionary = [[NSMutableDictionary alloc] init];
    }
    return self;
}


- (NSArray<NSString *> *)getGroupNames{
    return [[self.dictionary allKeys] sortedArrayUsingSelector:@selector(compare:)];
}

@end
